安装 yfinance 错误 window 7 Anaconda
Installing yfinance errors window 7 Anaconda
我尝试使用 pip install yfinance
安装 yfinance,我得到:
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'd:\users\myself\anaconda3\lib\site-packages\numpy\core\multiarray.cp36-win_amd64.pyd'
Consider using the '--user' option or check the permissions.
然后尝试 conda install -c ranaroussi yfinance
得到:
UnsatisfiableError: The following specifications were found to be in conflict:
- scipy
- yfinance -> numpy >=1.15 -> blas 1.1 openblas
- yfinance -> numpy >=1.15 -> mkl >=2019.4,<2020.0a0 1.1 openblas
- yfinance -> numpy >=1.15 -> mkl-service >=2,<3.0a0
Use "conda info <package>" to see the dependencies for each package.
知道发生了什么以及如何安装它吗?提前致谢!
案例一:pip
来源:Permission denied error by installing matplotlib
Linux / macOS
从您的终端,您可以只为您的用户安装包,像这样:
pip install <package> --user
或
您可以从您的终端使用 su
或 sudo
,以 安装包 root
:
sudo pip install <package>
Windows
从命令提示符,您可以仅为您的用户安装包,像这样:
pip install <package> --user
或
您可以按照以下步骤以管理员身份安装软件包:
- 右键单击命令提示符图标
- Select选项
Run This Program As An Administrator
- 运行命令
pip install <package>
P/s:您没有right/permission,因此系统阻止您通过pip安装,您需要是管理员。
案例二:conda
此消息告诉您财务所需的 library/package 版本与现有的预装版本有冲突。一种解决方案是为其创建另一个环境。
来源:
为 Python 3:
创建一个新的 conda 环境
conda create -n your_virtual_env python=3.7
为 Python 2.7:
创建一个新的 conda 环境
conda create -n your_virtual_env python=2.7
激活它:
conda activate your_virtual_env
或者,对于 Windows 上的旧 conda 版本:
activate your_virtual_env
在 Unix 上(包括 Mac OS X):
source activate your_virtual_env
激活后,安装您的软件包:
conda install yfinance
我尝试使用 pip install yfinance
安装 yfinance,我得到:
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'd:\users\myself\anaconda3\lib\site-packages\numpy\core\multiarray.cp36-win_amd64.pyd'
Consider using the '--user' option or check the permissions.
然后尝试 conda install -c ranaroussi yfinance
得到:
UnsatisfiableError: The following specifications were found to be in conflict:
- scipy
- yfinance -> numpy >=1.15 -> blas 1.1 openblas
- yfinance -> numpy >=1.15 -> mkl >=2019.4,<2020.0a0 1.1 openblas
- yfinance -> numpy >=1.15 -> mkl-service >=2,<3.0a0
Use "conda info <package>" to see the dependencies for each package.
知道发生了什么以及如何安装它吗?提前致谢!
案例一:pip
来源:Permission denied error by installing matplotlib
Linux / macOS
从您的终端,您可以只为您的用户安装包,像这样:
pip install <package> --user
或
您可以从您的终端使用 su
或 sudo
,以 安装包 root
:
sudo pip install <package>
Windows
从命令提示符,您可以仅为您的用户安装包,像这样:
pip install <package> --user
或
您可以按照以下步骤以管理员身份安装软件包:
- 右键单击命令提示符图标
- Select选项
Run This Program As An Administrator
- 运行命令
pip install <package>
P/s:您没有right/permission,因此系统阻止您通过pip安装,您需要是管理员。
案例二:conda
此消息告诉您财务所需的 library/package 版本与现有的预装版本有冲突。一种解决方案是为其创建另一个环境。
来源:
为 Python 3:
创建一个新的 conda 环境conda create -n your_virtual_env python=3.7
为 Python 2.7:
创建一个新的 conda 环境conda create -n your_virtual_env python=2.7
激活它:
conda activate your_virtual_env
或者,对于 Windows 上的旧 conda 版本:
activate your_virtual_env
在 Unix 上(包括 Mac OS X):
source activate your_virtual_env
激活后,安装您的软件包:
conda install yfinance